import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/display.css';
import { Swipe, SwipeItem, Step, Steps, RadioGroup, Radio, Button, Col, Row, Cell, CellGroup, Field, NavBar, Icon, Image as VanImage, List, Form, Notify, Search, Popup, Tag, Calendar } from 'vant'
import * as echarts from "echarts";
const app = createApp(App)
app.config.globalProperties.$echarts = echarts;
console.log(app.version)//vue版本
app.use(Button)
    .use(Col)
    .use(Row)
    .use(Cell)
    .use(CellGroup)
    .use(Field)
    .use(NavBar)
    .use(Icon)
    .use(VanImage)
    .use(List)
    .use(Form)
    .use(Notify)
    .use(Search)
    .use(Popup)
    .use(Tag)
    .use(Radio)
    .use(RadioGroup)
    .use(Calendar)
    .use(Step)
    .use(Steps)
    .use(Swipe)
    .use(SwipeItem)
app.use(ElementPlus, { locale: zhCn })
app.use(router).mount('#app')

